package data_structure.mooc.filereader;

import data_structure.implement.Set;
import data_structure.mooc.BST;

public class BSTSet<E extends Comparable<E>> implements Set<E> {

    private BST set;
    public BSTSet(){
        this.set=new BST();
    }
    @Override
    public void add(E e) {
        set.add(e);
    }

    @Override
    public void remove(E e) {
        set.remove(e);
    }

    @Override
    public int getSize() {
        return set.getSize ();
    }

    @Override
    public boolean isEmpty() {
        return set.isEmpty ();
    }

    @Override
    public boolean contains(E e) {
        return set.contains(e);
    }
}
